package com.teemo.equipment.service.impl;

import cn.hutool.core.collection.CollectionUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.teemo.equipment.domain.entity.EquipmentRecommend;
import com.teemo.equipment.service.EquipmentRecommendService;
import com.teemo.equipment.mapper.EquipmentRecommendMapper;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
* @author 13348
* @description 针对表【lol_equipment_recommend(出装推荐表)】的数据库操作Service实现
* @createDate 2024-07-19 22:16:13
*/
@Service
public class EquipmentRecommendServiceImpl extends ServiceImpl<EquipmentRecommendMapper, EquipmentRecommend>
    implements EquipmentRecommendService{

    @Override
    public List<EquipmentRecommend> listByRecordIds(List<Long> recordIds) {
        if (CollectionUtil.isEmpty(recordIds)){
            return Collections.emptyList();
        }
        return this.lambdaQuery().in(EquipmentRecommend::getRecommendRecordId, recordIds).list();
    }
}




